<?php

class Log_File extends Log_Abstract
{

    public function write($message)
    {
        $filename = $this -> getConfig('filename', TEMP_PATH . '/log/default.log');

        if ($fp = fopen($filename, 'a+'))
        {
            fwrite($fp, PHP_EOL . date('Y-m-d H:i:s') . PHP_EOL . $message . PHP_EOL);
            fclose($fp);
        }
        return $this;
    }

}
